using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace HadronData
{
    public class EntityMarkerContentTypeReader : ContentTypeReader<EntityMarker>
    {
        protected override EntityMarker Read(ContentReader p_contentReader, EntityMarker p_entityMarker)
        {
            EntityMarker entityMarker = new EntityMarker();
            entityMarker.Name = p_contentReader.ReadString();
            entityMarker.EntityType = p_contentReader.ReadObject<EntityType>();
            entityMarker.Position = p_contentReader.ReadVector2();
            entityMarker.Orientation = p_contentReader.ReadSingle();
            return entityMarker;
        }
    }
}
